package com.hins.demo.model.order;

/**
 * Description: 订单
 *
 * @author wenjiaqi
 * @date 2021/6/18 16:23
 */
public class Order {
    private Item item;
    private Integer count;

    // 把原来一个在ApplicationService的计算迁移到Entity里
    public Long getTotalCost() {
        return item.getItemUnitPrice() * count;
    }
}
